package com.example.lt.entity.user;

import com.baomidou.mybatisplus.annotation.TableField;
import com.example.lt.entity.BaseEntity;
import lombok.*;

import javax.validation.constraints.NotBlank;

/**
 * @Author 小涛Tao
 * @Date: 2024/07/28/16:25
 * version 1.0 注释：收藏夹实体类
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class Favorites extends BaseEntity {

    private static final long serialVersionUID = 1L;

    // 收藏夹名字
    @NotBlank(message = "收藏夹需要一个名字哦")
    private String name;

    // 收藏夹描述
    private String description;

    // 收藏夹所属用户
    private Long userId;

    // 收藏夹下的视频总数
    @TableField(exist = false)
    private Long videoCount;

}
